package tech.wetech.admin.model.system;

import java.util.ArrayList;
import java.util.List;

public class PhotoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<PhotoExample.Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public PhotoExample() {
        oredCriteria = new ArrayList<PhotoExample.Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<PhotoExample.Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(PhotoExample.Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public PhotoExample.Criteria or() {
        PhotoExample.Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public PhotoExample.Criteria createCriteria() {
        PhotoExample.Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected PhotoExample.Criteria createCriteriaInternal() {
        PhotoExample.Criteria criteria = new PhotoExample.Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<PhotoExample.Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<PhotoExample.Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<PhotoExample.Criterion> getAllCriteria() {
            return criteria;
        }

        public List<PhotoExample.Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new PhotoExample.Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new PhotoExample.Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new PhotoExample.Criterion(condition, value1, value2));
        }

        public PhotoExample.Criteria andIdIsNull() {
            addCriterion("id is null");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andOrganizationIdIsNull() {
            addCriterion("organization_id is null");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andOrganizationIdIsNotNull() {
            addCriterion("organization_id is not null");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andOrganizationIdEqualTo(Long value) {
            addCriterion("organization_id =", value, "organizationId");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andOrganizationIdNotEqualTo(Long value) {
            addCriterion("organization_id <>", value, "organizationId");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andOrganizationIdGreaterThan(Long value) {
            addCriterion("organization_id >", value, "organizationId");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andOrganizationIdGreaterThanOrEqualTo(Long value) {
            addCriterion("organization_id >=", value, "organizationId");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andOrganizationIdLessThan(Long value) {
            addCriterion("organization_id <", value, "organizationId");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andOrganizationIdLessThanOrEqualTo(Long value) {
            addCriterion("organization_id <=", value, "organizationId");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andOrganizationIdIn(List<Long> values) {
            addCriterion("organization_id in", values, "organizationId");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andOrganizationIdNotIn(List<Long> values) {
            addCriterion("organization_id not in", values, "organizationId");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andOrganizationIdBetween(Long value1, Long value2) {
            addCriterion("organization_id between", value1, value2, "organizationId");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andOrganizationIdNotBetween(Long value1, Long value2) {
            addCriterion("organization_id not between", value1, value2, "organizationId");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andNameIsNull() {
            addCriterion("name is null");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andPasswordIsNull() {
            addCriterion("password is null");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andPasswordIsNotNull() {
            addCriterion("password is not null");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andPasswordEqualTo(String value) {
            addCriterion("password =", value, "password");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andPasswordNotEqualTo(String value) {
            addCriterion("password <>", value, "password");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andPasswordGreaterThan(String value) {
            addCriterion("password >", value, "password");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("password >=", value, "password");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andPasswordLessThan(String value) {
            addCriterion("password <", value, "password");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andPasswordLessThanOrEqualTo(String value) {
            addCriterion("password <=", value, "password");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andPasswordLike(String value) {
            addCriterion("password like", value, "password");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andPasswordNotLike(String value) {
            addCriterion("password not like", value, "password");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andPasswordIn(List<String> values) {
            addCriterion("password in", values, "password");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andPasswordNotIn(List<String> values) {
            addCriterion("password not in", values, "password");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andPasswordBetween(String value1, String value2) {
            addCriterion("password between", value1, value2, "password");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andPasswordNotBetween(String value1, String value2) {
            addCriterion("password not between", value1, value2, "password");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andSaltIsNull() {
            addCriterion("salt is null");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andSaltIsNotNull() {
            addCriterion("salt is not null");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andSaltEqualTo(String value) {
            addCriterion("salt =", value, "salt");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andSaltNotEqualTo(String value) {
            addCriterion("salt <>", value, "salt");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andSaltGreaterThan(String value) {
            addCriterion("salt >", value, "salt");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andSaltGreaterThanOrEqualTo(String value) {
            addCriterion("salt >=", value, "salt");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andSaltLessThan(String value) {
            addCriterion("salt <", value, "salt");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andSaltLessThanOrEqualTo(String value) {
            addCriterion("salt <=", value, "salt");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andSaltLike(String value) {
            addCriterion("salt like", value, "salt");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andSaltNotLike(String value) {
            addCriterion("salt not like", value, "salt");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andSaltIn(List<String> values) {
            addCriterion("salt in", values, "salt");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andSaltNotIn(List<String> values) {
            addCriterion("salt not in", values, "salt");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andSaltBetween(String value1, String value2) {
            addCriterion("salt between", value1, value2, "salt");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andSaltNotBetween(String value1, String value2) {
            addCriterion("salt not between", value1, value2, "salt");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andRoleIdsIsNull() {
            addCriterion("role_ids is null");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andRoleIdsIsNotNull() {
            addCriterion("role_ids is not null");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andRoleIdsEqualTo(String value) {
            addCriterion("role_ids =", value, "roleIds");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andRoleIdsNotEqualTo(String value) {
            addCriterion("role_ids <>", value, "roleIds");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andRoleIdsGreaterThan(String value) {
            addCriterion("role_ids >", value, "roleIds");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andRoleIdsGreaterThanOrEqualTo(String value) {
            addCriterion("role_ids >=", value, "roleIds");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andRoleIdsLessThan(String value) {
            addCriterion("role_ids <", value, "roleIds");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andRoleIdsLessThanOrEqualTo(String value) {
            addCriterion("role_ids <=", value, "roleIds");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andRoleIdsLike(String value) {
            addCriterion("role_ids like", value, "roleIds");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andRoleIdsNotLike(String value) {
            addCriterion("role_ids not like", value, "roleIds");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andRoleIdsIn(List<String> values) {
            addCriterion("role_ids in", values, "roleIds");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andRoleIdsNotIn(List<String> values) {
            addCriterion("role_ids not in", values, "roleIds");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andRoleIdsBetween(String value1, String value2) {
            addCriterion("role_ids between", value1, value2, "roleIds");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andRoleIdsNotBetween(String value1, String value2) {
            addCriterion("role_ids not between", value1, value2, "roleIds");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andLockedIsNull() {
            addCriterion("locked is null");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andLockedIsNotNull() {
            addCriterion("locked is not null");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andLockedEqualTo(Boolean value) {
            addCriterion("locked =", value, "locked");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andLockedNotEqualTo(Boolean value) {
            addCriterion("locked <>", value, "locked");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andLockedGreaterThan(Boolean value) {
            addCriterion("locked >", value, "locked");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andLockedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("locked >=", value, "locked");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andLockedLessThan(Boolean value) {
            addCriterion("locked <", value, "locked");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andLockedLessThanOrEqualTo(Boolean value) {
            addCriterion("locked <=", value, "locked");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andLockedIn(List<Boolean> values) {
            addCriterion("locked in", values, "locked");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andLockedNotIn(List<Boolean> values) {
            addCriterion("locked not in", values, "locked");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andLockedBetween(Boolean value1, Boolean value2) {
            addCriterion("locked between", value1, value2, "locked");
            return (PhotoExample.Criteria) this;
        }

        public PhotoExample.Criteria andLockedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("locked not between", value1, value2, "locked");
            return (PhotoExample.Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends PhotoExample.GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
